<template>
  <div id="container">
    <el-card>
      <el-select v-model="value" placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.userId"
          :label="item.userName"
          :value="item.userName"
          @change="handleChange"
        >
        </el-option>
      </el-select>
    </el-card>
  </div>
</template>

<script>
import { selectData } from "./selectData";

export default {
  created() {
    console.log(123);
  },
  data() {
    return {
      options: selectData,
      value: "",
    };
  },
  methods: {
    handleChange(val) {
      console.log(val);
    },
  },
};
</script>

<style scoped>
</style>

